package it.av.training.rest.exception;

/**
 * 
 * @author alessandro vincelli
 *
 */
public enum ErrorCode {

    ERRORE_GENERICO("-1", "Errore generico");

    private final String code;
    private final String description;

    private ErrorCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String toString() {
        return code + ": " + description;
    }
}
